<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.prime.com.tr/ui">
    <ui:composition template="IndexReserva.xhtml">  
        <ui:define name="content"> 
            <h:body>
                <p:panel>
                    <h:form>
                        <p:dataGrid value="#{listarFilmesHandler.popularFilmes()}" columns="4" var="f">
                            <p:panel>
                                <f:facet name="header">
                                    <h:outputText value="#{f.filTitulo}"></h:outputText>
                                </f:facet>
                                <h:panelGrid style="text-align:left" columns="4">
                                    <h:column>
                                        <br />
                                        <h:graphicImage value="#{f.filImagem}" />
                                        <br />
                                        <h:outputText value="Resumo: #{f.filResumo}"></h:outputText>
                                        <br />
                                        <h:outputText value="Duraçao: #{f.filDuracao }"></h:outputText>
                                        <br />
                                        <h:outputText value="Ano: #{f.filAno}"></h:outputText>
                                        <br />
                                        <h:outputText value="Diretor: #{f.filDiretor}"></h:outputText>
                                        <br />
                                        <h:outputText value="Valor Locação: #{f.fil_preco_locacao}"></h:outputText>
                                        <br />
                                         <h:outputText value="Valor Venda: #{f.fil_preco_venda}"></h:outputText>
                                        <br />
                               </h:column>
                               <!--     <h:column>
                                        <h:commandButton value="Adicionar ao Carrinho"></h:commandButton>
                                    </h:column>-->
                                </h:panelGrid>
                            </p:panel>				
                        </p:dataGrid>
                    </h:form>
                    <p:spacer height="50"/>
                </p:panel>
            </h:body>
        </ui:define>
    </ui:composition>
</html>
